/* ===== VARIABLES CSS ===== */
:root {
    --color-primary-teal: #45B7AF;
    --color-secondary-mint: #E8F7F5;
    --color-text-dark: #2c3e50;
    --color-text-light: #7f8c8d;
    --color-bg-light: #f8f9fa;
    --color-white: #ffffff;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --font-primary: 'Montserrat', sans-serif;
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

/* ===== ESTILOS GLOBALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-white);
}

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

/* ===== HEADER Y NAVEGACIÓN ===== */
header {
    background: var(--color-white);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--color-shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

/* Menú Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-primary-teal);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

nav {
    display: flex;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.btn-nav {
    background: var(--color-primary-teal);
    color: var(--color-white) !important;
    padding: 10px 20px;
    border-radius: 25px;
    transition: var(--transition);
}

.btn-nav:hover {
    background: #3a9d96;
    color: var(--color-white) !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
    margin-top: 90px;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(69, 183, 175, 0.05) 0%, rgba(232, 247, 245, 0.5) 100%);
    position: relative;
    overflow: hidden;
    min-height: 750px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.bg-shape-top {
    position: absolute;
    top: -50px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(69, 183, 175, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    flex: 1;
    max-width: 100%;
}

.hero-text h3 {
    font-size: 1.2rem;
    color: var(--color-primary-teal);
    margin-bottom: 10px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--color-text-dark);
}

.hero-text h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--color-text-light);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: calc(50% + 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-primary-teal);
    color: var(--color-white);
}

.btn-primary:hover {
    background: #3a9d96;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(69, 183, 175, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary-teal);
    color: var(--color-primary-teal);
    margin-left: 10px;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--color-primary-teal);
    color: white;
}

.w-100 {
    width: 100%;
}

/* ===== ESTILOS DE TEXTO ===== */
.text-primary {
    color: var(--color-primary-teal);
}

.text-secondary-dark {
    color: var(--color-text-dark);
}

.text-white {
    color: var(--color-white);
}

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

.text-justify {
    text-align: justify;
}

/* ===== SECCIONES ===== */
.section-title {
    font-size: 2.5rem;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

/* --- ABOUT SECTION --- */
.about-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.about-main p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.mv-card {
    background: var(--color-secondary-mint);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-primary-teal);
}

.mv-card h3 {
    color: var(--color-primary-teal);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.mv-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.values-card {
    background: #fff5f5;
    border-left-color: #ff6b6b;
}

/* --- EDUCACIÓN --- */
.education-mini {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.education-mini h4 {
    color: var(--color-primary-teal);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.edu-list {
    list-style: none;
    padding-left: 0;
}

.edu-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
    position: relative;
    padding-left: 15px;
}

.edu-list li::before {
    content: "•";
    color: var(--color-primary-teal);
    position: absolute;
    left: 0;
}

/* --- VALORES --- */
#values-list {
    list-style: none;
    padding: 0;
}

#values-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    color: var(--color-text-light);
}

#values-list li::before {
    content: "★";
    color: var(--color-primary-teal);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    top: 3px;
}

/* --- SERVICIOS SECTION --- */
.services-section {
    padding: 80px 0;
    background-color: #f4fcfb;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--color-primary-teal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card .icon-box {
    width: 50px;
    height: 50px;
    background: var(--color-secondary-mint);
    color: var(--color-primary-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem auto;
}

.service-card h3 {
    color: var(--color-text-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* --- GALLERY SECTION --- */
.gallery-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--color-shadow);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(69, 183, 175, 0.3);
}

/* --- CONTACT SECTION --- */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary-teal) 0%, #3a9d96 100%);
    position: relative;
    overflow: hidden;
}

.bg-shape-bottom {
    position: absolute;
    bottom: -50px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.info-item p {
    font-size: 1rem;
    line-height: 1.6;
}

.phone-big {
    font-size: 1.4rem !important;
    font-weight: 700;
    color: var(--color-white);
}

.contact-form-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-form-card h3 {
    color: var(--color-text-dark);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-teal);
    box-shadow: 0 0 0 3px rgba(69, 183, 175, 0.1);
}

#form-status {
    margin-top: 1rem;
    font-weight: 600;
}

/* --- FOOTER --- */
footer {
    background: var(--color-text-dark);
    color: var(--color-white);
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.95rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-section {
        background-attachment: scroll;
        min-height: auto;
        padding: 60px 0;
    }

    .hero-container {
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 5px 15px var(--color-shadow);
        z-index: 999;
    }

    nav.active {
        max-height: 400px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    nav li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    nav a {
        display: block;
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    .btn-nav {
        width: calc(100% - 40px);
        margin: 10px 20px;
        text-align: center;
    }

    .logo img {
        height: 95px;
    }

    .hero-section {
        margin-top: 80px;
        padding: 50px 0;
        min-height: auto;
        background: url('img/mariaruizbg.png') no-repeat center / contain,
                    linear-gradient(135deg, rgba(69, 183, 175, 0.7) 0%, rgba(232, 247, 245, 0.8) 50%, rgba(255, 255, 255, 0.3) 100%);
        background-blend-mode: overlay;
    }

    .hero-container {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 15px;
    }

    .hero-image {
        display: none !important;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-main p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .mv-card {
        padding: 1.5rem;
    }

    .mv-card h3 {
        font-size: 1.1rem;
    }

    .mv-card p {
        font-size: 0.9rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 2rem;
    }

    .gallery-grid img {
        height: 250px;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info h2 {
        font-size: 1.5rem;
    }

    .contact-form-card {
        padding: 1.5rem;
    }

    .contact-form-card h3 {
        font-size: 1.3rem;
    }

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

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 0.95rem;
    }

    .phone-big {
        font-size: 1.2rem !important;
    }

    footer {
        padding: 30px 0;
    }

    footer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 12px 0;
    }

    .logo img {
        height: 85px;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    nav ul {
        width: 100%;
        flex-direction: column;
        gap: 8px;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }

    nav a {
        font-size: 0.85rem;
        padding: 8px 0;
    }

    .btn-nav {
        width: 100%;
        text-align: center;
        padding: 8px 15px;
    }

    .hero-section {
        margin-top: 120px;
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .hero-text h2 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .hero-text h3 {
        font-size: 0.9rem;
    }

    .hero-text p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .btn {
        padding: 9px 18px;
        font-size: 0.9rem;
    }

    .hero-image img {
        max-height: 300px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .about-main p {
        font-size: 0.85rem;
    }

    .education-mini h4 {
        font-size: 0.9rem;
    }

    .edu-list li {
        font-size: 0.8rem;
    }

    .mv-card {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }

    .mv-card h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .mv-card p {
        font-size: 0.85rem;
    }

    #values-list li {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.2rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.8rem;
    }

    .service-card .icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gallery-grid img {
        height: 200px;
    }

    .contact-section {
        padding: 40px 0;
    }

    .contact-info h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .contact-info p {
        font-size: 0.85rem;
    }

    .info-item {
        margin-bottom: 20px;
    }

    .info-item strong {
        font-size: 0.95rem;
    }

    .phone-big {
        font-size: 1rem !important;
    }

    .contact-form-card {
        padding: 1rem;
    }

    .contact-form-card h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .form-group input,
    .form-group textarea {
        padding: 8px;
        font-size: 0.9rem;
    }

    footer p {
        font-size: 0.75rem;
    }
}

/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    transform: scale(1.1);
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.8);
    }
}

/* Media queries para botón WhatsApp */
@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .whatsapp-btn {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}