:root {
    --azul: #042e4d;
    --azul-hover: #063d66;
    --crema: #f6f4da;
    --crema-claro: #faf9f0;
    --gris-suave: #5a6269;
    --dorado: #b8964c;
    --dorado-hover: #a3843f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    background-color: var(--crema-claro);
    color: var(--azul);
    line-height: 1.7;
    font-size: 15px;
    letter-spacing: 0.02em;
}

/* NavegaciÃ³n */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(4, 46, 77, 0.5), transparent);
    transition: all 0.4s ease;
}

nav.scrolled {
    background: var(--crema-claro);
    padding: 1.2rem 5%;
    box-shadow: 0 1px 0 rgba(4, 46, 77, 0.08);
}

nav.scrolled .logo .logo-name {
    color: var(--azul);
}

nav.scrolled .logo .logo-tagline {
    color: var(--gris-suave);
}

nav.scrolled .nav-links a {
    color: var(--azul);
}

nav.scrolled .nav-links a::after {
    background: var(--azul);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo .logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.logo .logo-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--crema);
    line-height: 1;
    transition: color 0.4s ease;
}

.logo .logo-tagline {
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(246, 244, 218, 0.7);
    font-weight: 400;
    transition: color 0.4s ease;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--crema);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.4s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--crema);
    transition: width 0.3s ease, background 0.4s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    background: var(--crema);
    /* Banner */
    background: linear-gradient(rgba(4, 46, 77, 0.7), rgba(4, 46, 77, 0.8)), url('img/banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

}


.hero.with-image {
    background: linear-gradient(rgba(4, 46, 77, 0.7), rgba(4, 46, 77, 0.8)), url('img/banner.png');
    background-size: cover;
    background-position: center;
}

.hero.with-image h1,
.hero.with-image .hero-description {
    color: var(--crema);
}

.hero.with-image .btn {
    border-color: var(--crema);
    color: var(--crema);
}

.hero.with-image .btn:hover {
    background: var(--crema);
    color: var(--azul);
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(4, 46, 77, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(4, 46, 77, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    animation: fadeUp 1.2s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gris-suave);
    margin-bottom: 2rem;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero h1 em {
    font-style: italic;
    font-weight: 300;
}

.hero-description {
    font-size: 1rem;
    color: var(--gris-suave);
    max-width: 500px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--azul);
    color: var(--azul);
    background: transparent;
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn:hover {
    background: var(--azul);
    color: var(--crema);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: float 2s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--azul), transparent);
}

/* Secciones */
section {
    padding: 8rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-label {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gris-suave);
    margin-bottom: 1.5rem;
    display: block;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Servicios */
.servicios {
    background: var(--crema-claro);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.servicio-card {
    text-align: center;
    padding: 3rem 2rem;
    transition: transform 0.4s ease;
}

.servicio-card:hover {
    transform: translateY(-5px);
}

.servicio-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 2rem;
    stroke: var(--azul);
    stroke-width: 1;
    fill: none;
}

.servicio-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.servicio-card p {
    font-size: 0.9rem;
    color: var(--gris-suave);
    line-height: 1.8;
}

/* Nosotros */
.nosotros {
    background: var(--crema);
}

.nosotros-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.nosotros-text p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--azul);
    line-height: 1.6;
}


/* Region */
.region {
    background: var(--azul);
    color: var(--crema);
    text-align: center;
}

.region .section-label {
    color: rgba(246, 244, 218, 0.5);
}

.region .section-title {
    color: var(--crema);
}

.region-description {
    max-width: 600px;
    margin: 0 auto 3rem;
    color: rgba(246, 244, 218, 0.7);
    font-size: 1rem;
    line-height: 1.9;
}

.region .btn {
    border-color: var(--crema);
    color: var(--crema);
}

.region .btn:hover {
    background: var(--crema);
    color: var(--azul);
}

/* Contacto */
.contacto {
    background: var(--crema-claro);
}

.contacto-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.contacto-info {
    margin-bottom: 3rem;
}

.contacto-item {
    margin-bottom: 1.5rem;
}

.contacto-item span:first-child {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gris-suave);
    margin-bottom: 0.5rem;
}

.contacto-valor {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--azul);
}



form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gris-suave);
    margin-bottom: 0.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(4, 46, 77, 0.15);
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--azul);
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--azul);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

form .btn {
    width: 100%;
    border: none;
    background: var(--azul);
    color: var(--crema);
}

form .btn:hover {
    background: var(--azul-hover);
}

/* Footer */
footer {
    background: var(--azul);
    color: rgba(246, 244, 218, 0.5);
    padding: 4rem 5% 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto 2.5rem;
}

.footer-brand {
    text-align: left;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--crema);
    margin-bottom: 0.3rem;
}

.footer-tagline {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(246, 244, 218, 0.5);
}

.footer-social {
    text-align: right;
}

.footer-social-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(246, 244, 218, 0.5);
    margin-bottom: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(246, 244, 218, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    border-color: var(--crema);
    background: rgba(246, 244, 218, 0.1);
}

.social-icon {
    width: 18px;
    height: 18px;
    stroke: var(--crema);
    stroke-width: 1.5;
    fill: none;
    transition: stroke 0.3s ease;
}

.social-links a:hover .social-icon {
    stroke: var(--crema);
}

.footer-contact {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: rgba(246, 244, 218, 0.6);
}

.footer-contact a {
    color: rgba(246, 244, 218, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--crema);
}

.footer-responsable {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(246, 244, 218, 0.5);
    letter-spacing: 0.08em;
}

.footer-separator {
    margin: 0 0.8rem;
    color: rgba(246, 244, 218, 0.3);
}

.footer-divider {
    width: 100%;
    max-width: 1100px;
    height: 1px;
    background: rgba(246, 244, 218, 0.1);
    margin: 0 auto 2rem;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(246, 244, 218, 0.4);
}

/* Menú Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--crema);
    margin: 3px 0;
    transition: all 0.3s ease;
}

nav.scrolled .menu-toggle span {
    background: var(--azul);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==================== RESPONSIVE ==================== */

/* Tablet Grande (1024px) */
@media (max-width: 1024px) {
    .nav-links {
        gap: 2rem;
    }

    .servicios-grid {
        gap: 2rem;
    }

    .hero-content {
        max-width: 650px;
    }
}

/* Tablet (768px - 1024px) */
@media (max-width: 768px) {

    /* Navegación Mobile */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--azul);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--crema) !important;
        font-size: 1rem;
        letter-spacing: 0.15em;
    }

    .nav-links a::after {
        background: var(--crema) !important;
    }

    nav.scrolled .menu-toggle.active span {
        background: var(--crema);
    }

    /* Hero */
    .hero {
        padding: 0 8%;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-description {
        font-size: 0.95rem;
    }

    /* Secciones */
    section {
        padding: 5rem 5%;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    /* Servicios */
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .servicio-card {
        padding: 2rem 1.5rem;
    }

    /* Nosotros */
    .nosotros-text p {
        font-size: 1.3rem;
    }

    /* Región */
    .region-description {
        font-size: 0.95rem;
    }

    /* Contacto */
    .contacto-content {
        max-width: 100%;
    }

    .contacto-valor {
        font-size: 1.1rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-social {
        text-align: center;
    }

    .footer-contact {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-separator {
        display: none;
    }
}

/* Mobile (480px - 768px) */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    nav {
        padding: 1.2rem 5%;
    }

    nav.scrolled {
        padding: 1rem 5%;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .logo .logo-name {
        font-size: 1.1rem;
    }

    .logo .logo-tagline {
        font-size: 0.5rem;
    }

    /* Hero */
    .hero {
        min-height: 100svh;
        padding: 0 6%;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.65rem;
    }

    .scroll-indicator {
        bottom: 2rem;
    }

    .scroll-indicator span {
        height: 35px;
    }

    /* Secciones */
    section {
        padding: 4rem 5%;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-label {
        font-size: 0.6rem;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Servicios */
    .servicio-card {
        padding: 1.5rem 1rem;
    }

    .servicio-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 1.5rem;
    }

    .servicio-card h3 {
        font-size: 1.2rem;
    }

    .servicio-card p {
        font-size: 0.85rem;
    }

    /* Nosotros */
    .nosotros-text p {
        font-size: 1.15rem;
    }



    /* Región */
    .region-description {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    /* Contacto */
    .contacto-info {
        margin-bottom: 2rem;
    }

    .contacto-item {
        margin-bottom: 1.2rem;
    }

    .contacto-valor {
        font-size: 1rem;
        word-break: break-word;
    }

    input,
    textarea {
        padding: 0.9rem;
        font-size: 0.9rem;
    }

    textarea {
        min-height: 100px;
    }

    /* Footer */
    footer {
        padding: 3rem 5% 2rem;
    }

    .footer-logo {
        font-size: 1.3rem;
    }

    .footer-tagline {
        font-size: 0.6rem;
    }

    .social-links a {
        width: 36px;
        height: 36px;
    }

    .social-icon {
        width: 16px;
        height: 16px;
    }

    .footer-contact {
        font-size: 0.8rem;
    }



    .footer-copyright p {
        font-size: 0.65rem;
    }
}

/* Mobile Pequeño (< 380px) */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .contacto-valor {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.6rem;
    }
}

/* Animaciones al scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mensajes del formulario */
.form-mensaje {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    border-radius: 4px;
    animation: fadeIn 0.3s ease;
}

.form-mensaje.exito {
    background: rgba(34, 139, 34, 0.1);
    border: 1px solid rgba(34, 139, 34, 0.3);
    color: #228b22;
}

.form-mensaje.error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estado deshabilitado del botÃ³n */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}