/* /css/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #16314E;   /* azul marino */
    --primary-dark: #0E2236;    /* navy profundo */
    --primary-light: #DDE6F0;   /* tinte navy claro */
    --secondary-color: #C9A24B; /* dorado */
    --accent-color: #C9A24B;    /* dorado */
    --accent-deep: #A8842F;     /* dorado oscuro */
    --text-dark: #11202E;
    --text-light: #5A6B78;
    --bg-light: #F4F6F9;
    --white: #FFFFFF;
    --success: #4CAF50;
    --shadow-sm: 0 2px 10px rgba(16, 34, 54, 0.08);
    --shadow-md: 0 8px 28px rgba(16, 34, 54, 0.12);
    --shadow-lg: 0 18px 50px rgba(16, 34, 54, 0.20);
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

h1, h2, h3, h4,
.section-title,
.hero h1 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Navbar Styles */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo img {
    height: 60px;
    width: auto;
}

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

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 1rem 0;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.btn-contact {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero Section — reorganizado: contenido alineado a la izquierda con franja dorada */
.hero {
    background-image: linear-gradient(120deg, rgba(14, 34, 54, 0.86) 0%, rgba(22, 49, 78, 0.78) 55%, rgba(11, 27, 43, 0.88) 100%), url('../fondo.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 140px 0 110px;
    text-align: left;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--secondary-color);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    line-height: 1.05;
}

.hero h1::after {
    content: '';
    display: block;
    width: 90px;
    height: 4px;
    background: var(--secondary-color);
    margin-top: 1.5rem;
    border-radius: 2px;
}

.hero .subtitle {
    font-size: 1.45rem;
    margin-bottom: 1rem;
    font-weight: 300;
    color: #EAF0F7;
}

.hero .tagline {
    font-size: 1.15rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--accent-deep);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1.1rem auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Category Cards — alternating layout */
.service-category {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
    margin-bottom: 2.5rem;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--white);
    min-height: 400px;
    border: 1px solid #E6EBF1;
    border-left: 5px solid var(--secondary-color);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.service-category:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Imagen va a la derecha por defecto */
.service-category-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.service-category-content::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.25;
    pointer-events: none;
}

.service-category-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 1rem;
}

.service-category-content h2 {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    line-height: 1.2;
}

.service-category-content h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.service-category-content h2 a:hover {
    color: var(--primary-color);
}

.service-category-content .service-description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.btn-ver-servicios {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    align-self: flex-start;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(16, 49, 78, 0.28);
}

.btn-ver-servicios:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 75, 0.45);
    gap: 0.9rem;
}

.btn-ver-servicios svg {
    transition: transform 0.3s ease;
}

.btn-ver-servicios:hover svg {
    transform: translateX(3px);
}

/* Imagen del lado derecho */
.service-category-image {
    position: relative;
    overflow: hidden;
    min-height: 380px;
}

.service-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.service-category:hover .service-category-image img {
    transform: scale(1.05);
}

/* Overlay sutil sobre la imagen */
.service-category-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(201, 162, 75, 0.12) 0%,
        transparent 60%
    );
    pointer-events: none;
}

/* Categoría impar: texto izquierda, imagen derecha (default) */
.service-category:nth-child(odd) .service-category-content {
    order: 1;
}
.service-category:nth-child(odd) .service-category-image {
    order: 2;
}

/* Categoría par: imagen izquierda, texto derecha */
.service-category:nth-child(even) .service-category-content {
    order: 2;
}
.service-category:nth-child(even) .service-category-image {
    order: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .service-category {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .service-category-image {
        min-height: 260px;
        order: 1 !important;
    }

    .service-category-content {
        order: 2 !important;
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 480px) {
    .service-category-content {
        padding: 2rem 1.5rem;
    }

    .service-category-content h2 {
        font-size: 1.6rem;
    }

    .service-category-image {
        min-height: 200px;
    }
}

/* Info Section */
.info-section {
    padding: 60px 0;
    background: var(--white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: var(--bg-light);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    flex-shrink: 0;
}

.info-icon svg {
    display: block;
    flex-shrink: 0;
}

.info-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.info-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }
}

/* Map Section */
.map-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.map-address {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.map-address strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: linear-gradient(160deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0 30px;
    border-top: 4px solid var(--secondary-color);
}

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

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-tagline,
.footer-slogan {
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

.footer ul {
    list-style: none;
}

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

.footer a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
}

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

.footer-bottom p {
    margin: 0.5rem 0;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        display: none;
        gap: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
    }
    
    .service-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-list {
        grid-template-columns: 1fr;
    }
}
