/* ==========================================
   GRUPO AUTOMATIC - ESTILOS PRINCIPALES
   Tema: Premium, Moderno y Corporativo
   =========================================== */

/* Variables de color y tipografía */
:root {
    --primary: #0a1929; /* Azul oscuro */
    --secondary: #1e3a8a; /* Azul */
    --accent: #8b5cf6; /* Púrpura */
    --light: #f8f9fa; /* Gris muy claro */
    --gray: #64748b; /* Gris */
    --white: #ffffff;
    --success: #10b981;
    --error: #ef4444;
    
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--primary);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   NAVBAR - MENÚ DE NAVEGACIÓN
   =========================================== */

.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.navbar-logo a{
    display:flex;
    align-items:center;
}

.logo-img{
    height:100px;      /* ajusta tamaño */
    width:auto;
    display:block;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--secondary);
}

.navbar-menu .dropdown {
    position: relative;
}

.navbar-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    list-style: none;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    min-width: 200px;
}

.navbar-menu .dropdown:hover .dropdown-menu {
    display: flex;
    flex-direction: column;
}

.navbar-menu .dropdown-menu a {
    padding: 0.7rem 1.5rem;
}

.btn-solicitar {
    background: linear-gradient(135deg, var(--secondary), var(--accent)) !important;
    color: var(--white) !important;
    border-radius: 6px;
    padding: 0.7rem 1.5rem !important;
}

.btn-solicitar:hover {
    opacity: 0.9;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.4rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================
   BOTONES
   =========================================== */

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background-color: var(--light);
    color: var(--primary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

/* ==========================================
   HERO SECTION
   =========================================== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    right: -50px;
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ==========================================
   SECCIONES
   =========================================== */

section {
    padding: 80px 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    margin: -2rem 0 2rem 0;
}

/* Why Us Section */
.why-us {
    background-color: var(--light);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(30, 58, 138, 0.2);
}

.why-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

/* Services Highlight */
.services-highlight {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05), rgba(139, 92, 246, 0.05));
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(139, 92, 246, 0.1));
}

.service-card .service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    color: var(--secondary);
}

.services-cta {
    text-align: center;
}

/* Benefits Section */
.benefits {
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

.benefit-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.testimonials h2 {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    text-align: right;
}

/* Blog Section */
.blog-preview {
    background-color: var(--light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(30, 58, 138, 0.15);
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.read-more,
.read-more-full {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.read-more:hover,
.read-more-full:hover {
    color: var(--accent);
}

.blog-cta {
    text-align: center;
    margin-top: 2rem;
}

/* CTA Final */
.cta-final {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

.cta-final h2 {
    color: var(--white);
    font-size: 2.2rem;
}

.cta-final p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-section {
    background-color: var(--light);
    text-align: center;
    padding: 60px 0;
}

.cta-section h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ==========================================
   PÁGINA SERVICIOS DETALLE
   =========================================== */

.servicios-detalle {
    background-color: var(--white);
}

.servicio-item {
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--light);
    padding-bottom: 3rem;
}

.servicio-item:last-child {
    border-bottom: none;
}

.servicio-header h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.servicio-text {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 12px;
}

.features-list {
    list-style: none;
    margin: 1rem 0;
}

.features-list li {
    padding: 0.5rem 0;
    color: var(--primary);
}

.servicio-text h4 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
}

/* Comparativa */
.servicios-comparativa {
    background-color: var(--light);
}

.comparativa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.comparativa-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.comparativa-card.featured {
    border-color: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(30, 58, 138, 0.2);
}

.comparativa-card h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.price {
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1rem;
}

.comparativa-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.comparativa-card li {
    padding: 0.5rem 0;
}

/* ==========================================
   BLOG SECTION
   =========================================== */

.blog-section {
    background-color: var(--white);
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.blog-post {
    background: var(--light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.blog-post:hover {
    box-shadow: 0 8px 16px rgba(30, 58, 138, 0.15);
}

.blog-post h2 {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-date {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-excerpt h4 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.post-excerpt ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.post-excerpt li {
    margin-bottom: 0.5rem;
}

.newsletter-cta {
    background-color: var(--light);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.newsletter-cta h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 0.9rem 1rem;
    border: 2px solid var(--gray);
    border-radius: 6px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary);
}

/* ==========================================
   PÁGINA QUIÉNES SOMOS
   =========================================== */

.historia {
    background-color: var(--light);
}

.historia-content {
    max-width: 800px;
    margin: 0 auto;
}

.historia-text h2 {
    text-align: left;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.historia-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--primary);
}

/* MVV (Misión, Visión, Valores) */
.mvv {
    background-color: var(--white);
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mvv-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05), rgba(139, 92, 246, 0.05));
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary);
}

.mvv-card h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.valores-list {
    list-style: none;
}

.valores-list li {
    padding: 0.5rem 0;
}

/* Advantages */
.why-choose-us {
    background-color: var(--light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.advantage-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.advantage-item h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 0.7rem;
}

/* Presencia */
.presencia {
    background-color: var(--white);
}

.presencia-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.presencia-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.presencia-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Team */
.team {
    background-color: var(--light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-avatar {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.team-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.position {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bio {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ==========================================
   FORMULARIO DE CONTACTO
   =========================================== */

.contact-section {
    background-color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 0.7rem;
}

.info-item p {
    margin-bottom: 0.3rem;
}

.small {
    font-size: 0.9rem;
    color: var(--gray);
}

.contact-map {
    margin-top: 3rem;
}

.contact-map h3 {
    text-align: left;
    margin-bottom: 1rem;
}

.contact-form-wrapper h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Formulario */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.9rem 1rem;
    border: 2px solid var(--light);
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: rgba(30, 58, 138, 0.02);
}

.form-group.checkbox {
    flex-direction: row;
    align-items: center;
}

.form-group.checkbox input {
    width: 18px;
    height: 18px;
    margin-right: 0.7rem;
}

.form-group.checkbox label {
    margin-bottom: 0;
}

.form-message {
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* Alternativas de contacto */
.contact-alternatives {
    background-color: var(--light);
}

.alternatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.alternative-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.alternative-card h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* ==========================================
   FOOTER
   =========================================== */

.footer {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.social-links a:hover {
    background-color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.8;
}

/* ==========================================
   BOTÓN FLOTANTE WHATSAPP
   =========================================== */

.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: 999;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    bottom: 2.3rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--white);
        padding: 1rem;
        gap: 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li {
        width: 100%;
    }

    .navbar-menu a {
        display: block;
        padding: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    section {
        padding: 50px 0;
    }

    section h2 {
        font-size: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .presencia-content {
        grid-template-columns: 1fr;
    }

    .hero-background {
        width: 300px;
        height: 300px;
    }

    .navbar-menu .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background-color: rgba(30, 58, 138, 0.05);
    }

    .navbar-menu .dropdown.active .dropdown-menu {
        display: flex;
        flex-direction: column;
    }

    .whatsapp-button {
        width: 55px;
        height: 55px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    section h2 {
        font-size: 1.7rem;
    }

    .container {
        padding: 0 15px;
    }

    .services-grid,
    .benefits-grid,
    .blog-grid,
    .mvv-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        min-width: auto;
    }

    .hero-background {
        width: 200px;
        height: 200px;
    }
}
