:root {
    --primary-color: #1e2b58;
    --secondary-color: #fdb813;
    --accent-blue: #00a9e0;
    --text-dark: #1e2b58;
    --text-light: #fff;
    --bg-light: #f4f7f6;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo img {
    height: 70px;
    max-width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(30, 43, 88, 0.85), rgba(30, 43, 88, 0.85)), url('../assets/images/banner_hero.png');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--text-light);
    padding: 80px 0;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary-color);
}

.hero-content .subtitle {
    font-size: clamp(1rem, 3vw, 1.4rem);
    margin-bottom: 30px;
    font-weight: 600;
}

.hero-info-box {
    background: rgba(255, 255, 255, 0.1);
    padding: clamp(20px, 5vw, 40px);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 30px;
}

.hero-info-box h3 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-info-box ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    text-align: left;
}

.hero-info-box ul li::before {
    content: '✔';
    color: var(--secondary-color);
    margin-right: 10px;
    font-weight: bold;
}

.warning-text {
    font-style: italic;
    color: #ff9f9f;
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Buttons & Animations */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn:hover {
    background: #e5a700;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1ebe57;
}

/* Sections */
section {
    padding: clamp(60px, 10vw, 100px) 0;
}

h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-color);
    position: relative;
    text-transform: uppercase;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
}

/* Nosotros Section */
.nosotros-section {
    background: #fff;
}

.nosotros-intro {
    text-align: center;
    margin-bottom: 40px;
}

.amisi-logo {
    height: 120px;
    margin: 30px auto;
    display: block;
    max-width: 100%;
}

.nosotros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.nosotros-card {
    padding: 40px;
    background: var(--bg-light);
    border-radius: 15px;
    text-align: center;
    border-bottom: 4px solid var(--secondary-color);
    transition: transform 0.3s;
}

.nosotros-card:hover {
    transform: translateY(-10px);
}

.nosotros-card img {
    width: 80px;
    margin-bottom: 20px;
}

.nosotros-card h3 {
    color: var(--accent-blue);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.marco-legal-text {
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 40px auto 0;
}

/* Certificaciones Section Fix */
.conocer-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.conocer-text {
    flex: 1;
    min-width: 300px;
}

.conocer-img {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.conocer-img img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Paola Section (Restored v2 style) */
.paola-section {
    background: var(--bg-light);
}

.paola-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: center;
}

.paola-img img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--primary-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.paola-content {
    flex: 1;
    min-width: 300px;
}

.paola-content h2 {
    text-align: left;
}

.paola-content h2::after {
    margin: 15px 0 0;
}

/* Formulario */
.contacto-section {
    background: var(--bg-light);
}

.contacto-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: start;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 169, 224, 0.2);
}

/* WhatsApp Flotante & Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
}

.whatsapp-label {
    background: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s;
    pointer-events: none;
}

.whatsapp-wrapper:hover .whatsapp-label {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-float {
    background-color: #25d366;
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float img {
    width: 35px;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    background: var(--primary-color);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 10%;
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s;
}

.scroll-top:hover {
    transform: translateY(-5px);
    background: var(--accent-blue);
}

/* Checklist Section */
.checklist-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-blue));
    color: #fff;
    text-align: center;
}

.checklist-section h2 {
    color: #fff;
}

/* Footer & Social Icons */
footer {
    background: #111;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 30px 0;
}

.social-icons a {
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.social-icons img {
    height: 45px;
    filter: brightness(0) invert(1);
}

/* Responsividad */
@media (max-width: 992px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 90px;
        right: -100%;
        background: #fff;
        width: 100%;
        height: calc(100vh - 90px);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 20px 0; }
    .paola-content h2 { text-align: center; }
    .paola-content h2::after { margin: 15px auto 0; }
}

@media (max-width: 600px) {
    .whatsapp-label { display: none; }
    .hero-info-box ul { grid-template-columns: 1fr; }
}
