:root {
    --primary: #1a3bad;
    --secondary: #f2f6ff;
    --black: #000;
    --white: #fff;
    --button: #00057f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: var(--white);
    color: var(--black);
}

/* HEADER */
.header {
    background: var(--primary);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    padding-top: 20px;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    padding-bottom: 10px;
}

header {
    position: fixed; /* Mantiene el header siempre arriba */
    top: 0;
    width: 100%;
    transition: top 0.3s; /* Esto hace que el movimiento sea fluido */
    z-index: 1000; /* Asegura que esté por encima de todo */
}

/* Esta clase la pondremos con JavaScript cuando scrollees hacia abajo */
.header-hidden {
    top: -300px; /* Lo mueve hacia arriba, fuera de la vista (ajusta según la altura de tu logo) */
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;      /* Centra el contenedor en la pantalla */
    display: flex;
    justify-content: space-between; /* Logo a un lado, menú al otro */
    align-items: center;
}

.nav {
    align-items: center;
    display: contents;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px;
    list-style: none;
}

.menu a {
    text-decoration: none;
    color: var(--white);
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.7);
    transition: width 0.3s ease;
}

.menu a:hover {
    color: var(--white);
    opacity: 0.85;
}

.menu a:hover::after {
    width: 100%;
}

.btn-menu {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--white);
    padding: 6px 16px;
    border-radius: 2px;
    letter-spacing: 0.18em;
    font-weight: 600;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-menu:hover {
    background: #00057f;
    color: var(--white);
    border-color: #00057f;
    opacity: 1;
}

.btn-menu::after {
    display: none;
}

.menu a.btn-menu {
    color: var(--primary);
}

.menu a.btn-menu:hover {
    color: var(--white);
}

/* HERO */
.hero {
    height: 90vh;

    background: linear-gradient(
    rgba(144, 144, 144, 0.6),
    rgba(0, 0, 0, 0.4)
    ),
    url('images/hero.JPG');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h2 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.hero h2,
.hero p {
    color: #ffffff;
}

.hero-content {
    padding-top: 200px;
    margin-bottom: 100px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    border-radius: 5px;
}

.btn-primary:hover {
    color: black;
    background-color: white;
    font-weight: 600;
}


/* SECTIONS */
.section {
    padding: 100px 40px;
}

.alt {
    background: var(--secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
}

.container {
    max-width: 1200px;
    margin: auto;
}

/* GRID */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* SOBRE */

.sobre-text {
    display: flex;
    align-items: center;
    padding-left: 10px;
    text-align: left;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 20px;
}

.sobre-text {
    display: flex;
    align-items: center;
    padding-left: 10px;
    text-align: left;
}

.card a {
    text-decoration: none;
    color: inherit;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    font-weight: 700;
    font-size: 1.05rem;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.3px;
}

.card a:hover {
    color: #1a3bad;
    transform: translateX(5px);
}

/* CARDS */
.card {
    background: var(--white);
    padding: 15px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.img-holder {
    height: 350px;
    background: #ddd;
    margin-bottom: 10px;
    height: 350px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.small {
    height: 80px;
}

.card p {
    text-align: center;
}


/* PAQUETES */

.paquete-info {
    text-align: center;
}

.lista-detalles {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: center;
}

.paquetescontainer {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.paquete {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.paquete-info button {
    margin-top: 10px;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    font-weight: bold;
}

/* TESTIMONIOS */
.testimonial {
    background: var(--white);
    padding: 20px;
    text-align: center;
}

.avatar {
    width: 60px;
    height: 60px;
    background: #ddd;
    border-radius: 50%;
    margin: auto;
    margin-bottom: 10px;
}

.estrella {
    color: rgb(234, 222, 0);
}

/* CONTACTO */

.contacto-info {
    margin-bottom: 10px;
    padding-top: 50px;
}

.contacto-info a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    font-weight: 400;
    font-size: 1.1rem;
}

.contacto-info a:hover {
    color: #1a3bad;
    transform: translateX(5px);
}

.contacto-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.contacto-info i {
    color: #1a3bad;
    font-size: 2rem;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form input,
.form textarea {
    padding: 10px;
    border: 1px solid #ccc;
}

.form button {
    background: var(--primary);
    color: var(--white);
    padding: 10px;
    border: none;
    font-weight: bold;
}

.form button:hover {
    color: #041553;
    transform: translateY(5px);
    text-shadow: #000;
    text-decoration-line: underline;
}

.form button {
    font-size: 20px;
}


/* Títulos (branding fuerte) */
h1, h2, h3, .logo {
    font-family: 'Boldonse', sans-serif;
    letter-spacing: 1px;
}

/* Párrafos descriptivos */
p {
    font-family: 'Lato', sans-serif;
    font-size: 1.45rem;
    font-weight: 300;
    line-height: 1.75;
    color: #000000;
}

/* Nombres de fotógrafos */
.nombre {
    font-family: 'Lato', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Texto descriptivo de cada fotógrafo */
.description {
    font-family: 'Lato', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.75;
}

/* Items de lista de paquetes */
.lista-detalles li {
    font-family: 'Lato', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    color: black;
    margin-bottom: 8px;
}

/* UI / botones / navegación */
a, li, button, input, textarea {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 1.05rem;
}

h1 {
    font-size: 1rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

.hero h2 {
    font-size: 3rem;
    max-width: 700px;
    margin: auto;
}

.section {
    padding: 50px 40px;
}

/* HAMBURGER FLOTANTE */
.hamburger-btn {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 2000;
    background: var(--primary);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 3px;
    width: 42px;
    height: 42px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* DRAWER */
.nav-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    background: var(--primary);
    z-index: 1900;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0,0,0,0.25);
}

.nav-drawer.open {
    right: 0;
}

.nav-drawer a {
    color: var(--white);
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding-bottom: 4px;
    position: relative;
}

.nav-drawer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255,255,255,0.6);
    transition: width 0.3s ease;
}

.nav-drawer a:hover::after {
    width: 100%;
}

.nav-drawer .btn-drawer {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--white);
    padding: 7px 20px;
    border-radius: 2px;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.nav-drawer .btn-drawer:hover {
    background: #00057f;
    color: var(--white);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1800;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/*WHATSAPP*/

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
}

.tooltip {
    position: absolute;
    right: 70px;
    background: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    transition: 0.3s;
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
}

.form-message {
    margin-top: 15px;
    font-family: 'Lato', sans-serif;
    align-content: center;
    font-size: 2rem;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    width: 100%;
    text-align: center;
    
}

.form-message.success {
    background: #d4edda;
    color: #155724;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
}



/* RESPONSIVE */
@media (max-width: 667px) {
    .grid-4, .grid-3 {
        grid-template-columns: 1fr;
        padding: 0 2px;
    }

    .sobre-grid {
        grid-template-columns: 1fr;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 667px) {
    .hero h1 {
        font-size: 1rem;
    }
    
    .hero {
        padding: 40px 20px;
        text-align: center;
        padding-bottom: 100px;
    }
}

/* MÓVIL: ocultar header normal, mostrar solo hamburguesa */
@media (max-width: 667px) {
    header {
        display: none !important;
    }

    .hamburger-btn {
        display: flex !important;
        top: 14px;
        right: 16px;
    }
}
