/* --- CSS Variables and Reset --- */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #ef4444;
    --success-color: #22c55e;
    --warning-color: #f97316;
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;
    --border-color: #d1d5db;
    --customize-color: #0070C0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-radius: 0.5rem;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 1. Header and Navigation --- */
.main-header {
    background-color: var(--customize-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-white);
    text-decoration: none;
}

.nav-links {
    display: none; /* Hidden on mobile */
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--bg-white);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-light);
}

.mobile-menu-btn {
    display: block; /* Shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: var(--bg-white);
    padding: 1rem 0;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 0.5rem;
}

/* --- 2. Main Carousel --- */
.main-carousel {
    position: relative;
    /*border-radius: var(--border-radius); originalmente si lo trae*/
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
}

.main-carousel-container {
    display: flex;
}

.main-carousel-slide {
    min-width: 100%;
    display: none;
    transition: opacity 0.7s ease-in-out;
}
.main-carousel-slide.active {
    display: block;
}
.main-carousel-slide img {
    width: 100%;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: background-color 0.2s ease;
}
.carousel-control:hover {
    background-color: var(--bg-white);
}
.carousel-control.prev { left: 1rem; }
.carousel-control.next { right: 1rem; }

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}
.carousel-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.carousel-dot.active {
    background-color: var(--bg-white);
}

/* Hero */
.hero {
    height: auto; /*100vh*/
    width: 100%;
    /*padding-top: 80px; /* Espacio para la cabecera fija */
    background: url('https://images.unsplash.com/photo-1556742044-538a7c4e1f7b?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-blanco);
}

/* --- 3. Tabs Section --- */
.tabs-section { margin-bottom: 4rem; }
.tabs-nav {
    display: flex;
    gap: 2rem;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
    padding-bottom: 0.5rem;
}
.tab-button {
    background: none;
    border: none;
    padding: 0.5rem 0.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}
.tab-button:hover { color: var(--text-dark); }
.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.tabs-content { padding-top: 2rem; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tab-card-content {
    padding: 2rem;
    flex: 1;
}
.tab-card-content h3 { font-size: 1.75rem; margin-bottom: 1rem; }
.tab-card-content p { margin-bottom: 1.5rem; color: var(--text-light); }
.tab-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.tab-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.btn {
    display: inline-block;
    text-decoration: none;
    color: var(--bg-white);
    background-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.btn:hover { background-color: #2563eb; }

/* --- 4. Small Carousel --- */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}
.small-carousel {
    position: relative;
    margin-bottom: 4rem;
}
.small-carousel-wrapper {
    overflow: hidden;
}
.small-carousel-container {
    display: flex;
    flex-direction: row;
    transition: transform 0.5s ease-in-out;
}
.small-carousel-slide {
    min-width: 50%; /* 2 items on mobile */
    padding: 0.5rem 0.5rem;
}
.small-carousel-slide img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* --- 5. Info Cards --- */
.info-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}
.info-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.info-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.info-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.info-card-content h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.info-card-content p { color: var(--text-light); margin-bottom: 1rem; flex-grow: 1; }
.info-card .btn { width: 100%; text-align: center; }

/* --- 6. Footer --- */
.main-footer {
    background-color: var(--text-dark);
    /*background-color: #001f3f;*/
    color: #e5e7eb;
    padding: 3rem 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.footer-column h3 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--bg-white); }
.footer-column p, .footer-column a { color: #9ca3af; text-decoration: none; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.5rem; }
.footer-column a:hover { color: var(--bg-white); }
.footer-socials { display: flex; gap: 1rem; }
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--text-light);
    color: #9ca3af;
}

/* --- Responsive Media Queries --- */
@media (max-width: 767px) {
    .main-carousel-slide img {
        height: 400px;
        object-fit: cover;
    }
    .small-carousel-container{
        flex-wrap: wrap;
    }
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .mobile-menu-btn { display: none; }
    .mobile-menu { display: none !important; }

    .tab-card { flex-direction: row; }
    .tab-card-content { flex: 2; display: flex; flex-direction: column; justify-content: center; }
    .tab-card-image { flex: 1; height: auto; }
    
    .small-carousel-slide { min-width: 33.333%; } /* 3 items on tablet */
    .small-carousel .carousel-control { display: flex; }
    
    .info-cards-grid { grid-template-columns: repeat(2, 1fr); }
    
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .small-carousel-slide { min-width: 20%; } /* 4 items on desktop */
    .info-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}
