@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    /* Paleta Principal Clean Corporate */
    --primary: #ff6b00;
    --primary-hover: #e65c00;
    --primary-light: #fff0e5;
    
    /* Fondos (Grises neutros, sin tonos celestes) */
    --bg-page: #e0e0e0; 
    --bg-card: #f5f5f5; 
    
    /* Textos */
    --text-dark: #2d3748;
    --text-body: #4a5568;
    --text-muted: #718096;
    
    /* UI Elementos */
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    font-weight: 800;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

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

/* =========================================
   BOTONES
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #e0e0e0 0%, #cccccc 100%);
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.header-logo {
    max-width: 280px;
    margin-bottom: 2.5rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-content p {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-muted);
    font-weight: 400;
    margin: 0 auto 3rem auto;
    max-width: 800px;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* =========================================
   SECCIONES GENERALES
   ========================================= */
.section-container {
    padding: 6rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin: 15px auto 0;
}

/* =========================================
   BENTO GRID (SERVICIOS)
   ========================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.bento-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bento-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.bento-icon {
    height: 90px;
    width: auto;
    margin-bottom: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-card:hover .bento-icon {
    transform: scale(1.15) rotate(-5deg);
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bento-card p {
    color: var(--text-body);
    margin-bottom: 2rem;
    font-size: 1rem;
    flex-grow: 1;
}

/* =========================================
   AUDIO PLAYER
   ========================================= */
.audio-player-container {
    width: 100%;
    margin-top: 1.5rem;
}

audio {
    width: 100%;
    height: 45px;
    border-radius: 50px;
    outline: none;
}
audio::-webkit-media-controls-panel {
    background-color: var(--primary-light);
}

/* =========================================
   FAQ ACORDEON
   ========================================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.faq-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

.faq-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-light);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-content p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-body);
}

.faq-item.active {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--primary);
    color: #fff;
}

.faq-item.active .faq-content {
    max-height: 500px;
}

/* =========================================
   CONTACTO
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

.contact-info {
    background: var(--primary);
    color: #fff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.contact-info h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.contact-detail i {
    font-size: 1.5rem;
    background: rgba(255,255,255,0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-detail div {
    display: flex;
    flex-direction: column;
}

.contact-detail strong {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.contact-detail span {
    color: rgba(255, 255, 255, 0.85);
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-md);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: #cccccc;
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    max-width: 1300px;
    margin: 0 auto;
    margin-bottom: 3rem;
}

.footer-brand img {
    max-width: 200px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-body);
    max-width: 400px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col a {
    color: var(--text-body);
    font-weight: 500;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
}

/* =========================================
   MODALES Y CALCULADORA
   ========================================= */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(45, 55, 72, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3.5rem;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-page);
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: var(--transition);
}

.close-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

/* Tablas en Modal (Consejo) */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.admin-table th, .admin-table td {
    padding: 1.2rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    color: var(--primary);
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    background: var(--primary-light);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: var(--bg-page);
}

/* Equipo List */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.team-member h4 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.team-member span {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Calculadora */
.calc-card {
    background: var(--bg-page);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.calc-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.calc-header img {
    max-width: 60px;
    filter: drop-shadow(0 4px 6px rgba(255, 107, 0, 0.2));
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--text-body);
    font-weight: 500;
    transition: var(--transition);
}

.checkbox-label:hover {
    color: var(--primary);
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--primary);
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.calc-result {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px dashed var(--border-color);
}

.result-text {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.result-text .highlight {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 800;
}

.progress-bg {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   ANIMACIONES
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 4rem 1.5rem;
    }
    
    .hero-section {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }
    
    .contact-info {
        padding: 2rem;
    }
}
