/* ========================================
   VARIABLES
======================================== */


:root {
    --primary: #17193F;
    --secondary: #004D70;
    --terciary: #00B6BB;
    --fourt: white;
    --light: #f4f6fb;
    --text: #333;
}


/* ========================================
   RESET & BASE
======================================== */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}


section {
    padding: 70px 0;
}

body {
    color: var(--text);
    scroll-behavior: smooth;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ========================================
   MENU HAMBURGUESA
======================================== */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}



/* ========================================
   TOPBAR
======================================== */


.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    color: white;
    font-size: 14px;
    padding: 8px 0;
    z-index: 1100;
    height: 35px;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.topbar a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
}




/* ========================================
   HEADER
======================================== */

.header {
    position: fixed;
    left: 0;
    width: 100%;
    background: var(--primary);
    padding: 22px 0;
    z-index: 1000;
    top: 35px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity .3s;
}

.nav a:hover {
    opacity: .7;
}



/* ========================================
   HERO CLEAN VERSION
======================================== */

.hero {
    background: var(--primary);
    color: white;
    padding: 180px 0 80px; /* espacio real para topbar + header */
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-main-title {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-main-subtitle {
    font-size: clamp(1rem, 3vw, 1.6rem);
    background: var(--secondary);
    padding: 12px 24px;
    border-radius: 10px;
    display: inline-block;
}

/* Imagen */
.hero-media {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.hero-img {
    width: 100%;
    max-width: 620px;
    height: auto;
    display: block;
    border-radius: 18px;
    box-shadow:
        0 15px 40px rgba(0,0,0,0.15),
        0 5px 15px rgba(0,0,0,0.08);
}


/* ===== HERO EXTENDED ===== */

.hero-extended {
    background: var(--primary);
    color: white;
    padding: 180px 0 80px; /* espacio para topbar + header */
}

/* Título principal */
.hero-title-major{
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text-major {
    font-size: clamp(0.5rem, 2vw, 1.5rem);
    font-weight: 200;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-title{
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
}


/* Título principal */
.hero-title-us{
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

/* Subtítulo */
.hero-subtitle {
    font-size: clamp(1rem, 3vw, 2rem);
    background: var(--secondary);
    padding: 12px 24px;
    border-radius: 12px;
    display: inline-block;
}








/* ========================================
   BUTTONS
======================================== */


.btn-large {
    padding: 16px;
    font-size: 1.1rem;
    border-radius: 12px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none; 
    display: inline-block; 
    font-weight: bold;
}

.btn-primary:hover {
    text-decoration: none;
}

.btn-outline-white {
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
}



/* ========================================
   CARDS GENERALES
======================================== */


.cards {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
}



.card-header {
  width: 100%;
  background: transparent;
  border: none;
  color: white;
  padding: 20px 30px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.card-header:hover {
  opacity: 0.9;
}

.card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 30px;
  font-size: 14px;
  line-height: 1.6;
}

.accordion-card.active .card-body {
  max-height: 300px;
  padding: 0 30px 25px 30px;
}








/* ========================================
   ABOUT
======================================== */


.about-highlight {
    background: linear-gradient(135deg, #17193F, #2f4ea1);
    color: #fff;
}



.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
}

.about-card {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 14px;

    /* sombra visible siempre */
    box-shadow: 
        0 6px 18px rgba(0, 0, 0, 0.20),
        0 2px 6px rgba(0, 0, 0, 0.15);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-card:hover {
    transform: translateY(-6px);

    /* sombra más profunda en los 4 lados */
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.20),
        0 10px 20px rgba(0, 0, 0, 0.15);
}


.about-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}


.section {
    text-align: center;
}

.section .hero-text {
    text-align: center;
}


.gallery-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.gallery-item {
    background: #ccc;
    height: 120px;
    border-radius: 10px;
}

.form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
}




/* ========================================
   FOOTER
======================================== */



.footer-main {
    background: var(--primary);
    color: #ccc;
    font-size: 0.95rem;
}

/* Barra superior */
.footer-top {
    text-align: center;
    padding: 30px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-top p {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 500;
}

/* Contenido principal */
.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 50px 0;
}

/* Columna izquierda */
.footer-left p {
    line-height: 1.6;
    margin: 20px 0;
}

.footer-logo {
    width: 120px;
}

/* Redes sociales */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--terciary);
    color: var(--terciary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--secondary);
    color: white;
}

/* Columna derecha */
.footer-right h3 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-right ul {
    list-style: none;
    padding: 0;
}

.footer-right li {
    margin-bottom: 10px;
}

.footer-right a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-right a:hover {
    color: #bfa44a;
}


/* Centrar barra inferior completamente */
.footer-bottom {
    display: flex;
    padding: 15px 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.85rem;
    justify-content: center;  /* centra horizontal */
    align-items: center;
    flex-direction: column;   /* uno debajo del otro */
    text-align: center;
}

/* Centrar contenido del footer */
.footer-left,
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;   /* centra horizontalmente */
    text-align: center;    /* centra el texto */
}

/* Centrar lista derecha */
.footer-right ul {
    padding: 0;
}






/* ========================================
   VALORES
======================================== */


.hero-text-valor {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Siempre 2 en desktop */
    gap: 20px;
}

.valor {
    background: #ffffff;
    padding: 20px 22px;
    border-radius: 12px;

    /* líneas decorativas laterales */
    border-left: 4px solid var(--primary);
    border-right: 4px solid var(--primary);

    /* sombra visible siempre */
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.18),
        0 2px 6px rgba(0, 0, 0, 0.12);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.valor:hover {
    transform: translateY(-6px);

    /* sombra más profunda en los 4 lados */
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.25),
        0 10px 25px rgba(0, 0, 0, 0.18);
}

.valor h3 {
    font-size: 1.1rem;     /* título más compacto */
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 700;
}

.valor p {
    font-size: 0.95rem;    /* texto ligeramente más pequeño */
    line-height: 1.55;
    color: #55
}




/* ========================================
   CONTACT
======================================== */


/* ===== CONTACT HERO ===== */

.contact-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 140px 0;
}

.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.contact-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 15px 0;
}

.contact-subtitle {
    font-size: 1.2rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

.contact-form {
    background: white;
    padding: 50px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: left;
}











.section-eyebrow {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #bfa44a;
}

.lead {
    font-size: 1.1rem;
    opacity: 0.95;
}






.titulo {
  text-align: center;
  margin-bottom: 50px;
  font-size: 32px;
  font-weight: 600;
  color: #1b4d5c;
  letter-spacing: 2px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.columna {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.accordion-card {
  background: var(--secondary);
  color: white;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}



.icon {
  width: 28px;
  height: 28px;
  background: white;
  color: #134e5e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  transition: transform 0.2s ease;
}



/* Responsive */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}




/* ===== Carrusel
Oferta
===== */


.oferta {
    width: 90%;
    margin: 40px auto;
}

.oferta h2 {
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: auto;
}

.carousel {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-card {
    min-width: 25%;
    max-width: 32%;
    box-sizing: border-box;
    padding: 10px;
    position: relative;
}


@media (max-width: 768px) {

    .carousel-card {
        min-width: 100%;
        max-width: 100%;
    }

    .carousel-btn {
        padding: 10px;
        font-size: 16px;
    }
    
     .hero-text-valor {
        grid-template-columns: 1fr;
    }
    
}



.carousel-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 8px;
}

.card-content {
    background: white;
    padding: 15px;
    border-radius: 0 0 8px 8px;
}

.carousel-card h3 {
    font-size: 16px;
    margin: 10px 0;
}

.special-text {
    font-weight: bold;
    color: #0a7b83;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: orange;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.carousel-btn {
    background: #0a7b83;
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
}

.carousel-btn:hover {
    background: #075b61;
}


.upcoming-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    height: 100%;
    min-height: 350px;
}

.upcoming-content {
    text-align: center;
}

.upcoming-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.upcoming-content p {
    color: #777;
    font-size: 14px;
}








.ventajas .hero-text {
    display: block;      /* elimina el comportamiento grid solo aquí */
    text-align: center;
    margin-bottom: 50px;
}





/* ===== Mapa google

===== */

.location-hero h2 {
    text-align: center;
    margin-bottom: 30px;
}


.map-container {
    display: flex;
    justify-content: center;   /* Centra horizontal */
}

.map-container iframe {
    width: 100%;
    max-width: 900px;
    height: 350px;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 250px;
    }
}





/* ===== HERO ABOUT ===== */

.hero-about {
    background: #ffffff;
    padding: 120px 0;
}

.hero-about .hero-grid {
    align-items: center;
}

/* Centrar texto */
.hero-about .hero-text {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
}

.hero-title-dark {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 20px;
}

.lead-dark {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #444;
    margin: 0 auto;
    max-width: 680px;
}


.hero-img-about {
    width: 100%;
    max-width: 480px;
    border-radius: 18px;
    box-shadow:
        0 15px 40px rgba(0,0,0,0.15),
        0 5px 15px rgba(0,0,0,0.08);
}





.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 182, 187, 0.2);
}






/* ===== Smartphone Styles

===== */

/* MENU HAMBURGUESA */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        display: none;
    }

    .nav a {
        margin: 0;
        font-size: 1rem;
    }

    .nav.active {
        display: flex;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}


/* Ajuste para tablets */
@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(2rem, 7vw, 4.5rem);
    }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .hero-extended {
        padding: 150px 0 60px;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 10px 18px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {

    .hero {
        padding-top: 160px;
        padding-bottom: 60px;
        text-align: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-main-title {
        font-size: 2rem;
    }

    .hero-main-subtitle {
        font-size: 1rem;
        padding: 10px 18px;
    }

    .hero-img {
        max-width: 280px;
    }
}


@media (max-width: 768px) {

    /* ===== HEADER ===== */
    
    /* HEADER */
    .header {
        padding: 15px 0;
    }
    
    

    .nav a {
        margin: 0;
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    .logo img {
        height: 50px;
    }

    .header-call {
        padding: 6px 14px;
        font-size: 0.9rem;
    }

    /* ===== SECCIONES ===== */
    section {
        padding: 60px 0;
    }

    /* ===== HERO ===== */
    .hero {
        padding: 160px 0 60px;;
        text-align: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }


    .hero-text p {
        font-size: 1rem;
    }

    .hero-actions {
        justify-content: center;
    }

    /* ===== IMÁGENES ===== */
    .hero-img {
        width: 100%;
        height: auto !important;
        max-width: 320px;
    }

    /* ===== CARDS ===== */
    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 25px 20px;
    }

    /* ===== ABOUT ===== */
    .about-cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .about-card {
        padding: 30px 20px;
    }

    /* ===== FOOTER ===== */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 768px) {

    .topbar {
        font-size: 12px;
        padding: 6px 0;
    }
}



@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .hero-text h2 {
        font-size: 1.6rem;
    }

    .valor h3 {
        font-size: 1rem;
    }

    .valor p {
        font-size: 0.9rem;
    }
}


