:root {
    --color-primary: #1e88e5;
    --color-secondary: #00bcd4;
    --color-dark: #333;
    --color-light: #f4f4f4;
    --color-white: #fff;
    --font-family: 'Poppins', sans-serif;
}

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--color-primary);
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    background: var(--color-white);
    color: var(--color-dark);
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo-header {
    height: 60px;
}

.nav ul {
    display: flex;
}

.nav li {
    margin-left: 20px;
}

.nav a {
    color: var(--color-dark);
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--color-primary);
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    margin: 5px 0;
    transition: 0.4s;
}

/* Hero Section */
.hero {
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 60px 0;
}

.hero .logo-hero {
    width: 180px;
    margin: auto;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 20px auto;
}

.cta-button {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 12px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #00a8be;
}

/* Services Section */
.services-section {
    padding: 60px 0;
}

.services-section h2, .about-section h2, .contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.service-row {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

.service-row.right-img .service-image {
    order: 2;
}

.service-row.right-img .service-text {
    order: 1;
}

.service-row.left-img .service-image {
    order: 1;
}

.service-row.left-img .service-text {
    order: 2;
}

.service-text, .service-image {
    flex: 1;
}

.cta-button-small {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: background 0.3s ease;
}

.cta-button-small:hover {
    background: #1565c0;
}

/* About Section */
.about-section {
    padding: 60px 0;
    background: var(--color-light);
}

.about-profile-card {
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 40px;
}

.about-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.about-row .about-image {
    flex: 0 0 250px;
    border-radius: 10px;
    overflow: hidden;
}

.about-photo {
    width: 100%;
    height: auto;
}

.about-row .about-text {
    flex: 1;
}

.read-more-button {
    display: block;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.read-more-button:hover {
    background: #1565c0;
}

.expandable-content {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-info p {
    margin-bottom: 5px;
}

.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
}

.contact-form-container button {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    border: 0;
}

/* Footer */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    text-align: center;
    padding: 20px 0;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-media {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    align-items: center;
}

.social-media a {
    color: var(--color-white);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.social-media a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.social-media a:hover {
    color: var(--color-secondary);
}

.whatsapp-text {
    margin-left: 5px;
}

/* Media Queries para móviles */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }

    .header .logo-header {
        height: 60px;
    }

    .nav {
        display: none;
        width: 100%;
        margin-top: 10px;
    }

    .nav.is-open {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
    }

    .nav li {
        margin: 10px 0;
    }

    .hamburger-menu {
        display: block;
    }

    .service-row {
        flex-direction: column;
        text-align: center;
    }

    .about-row {
        flex-direction: column;
    }

    /* Estilos específicos para el orden en móvil */
    .about-row.right-img .about-image {
        order: 1;
    }

    .about-row.right-img .about-text {
        order: 2;
    }

    .about-row.left-img .about-image {
        order: 1;
    }

    .about-row.left-img .about-text {
        order: 2;
    }

    .about-row .about-image {
        flex: 0 0 auto;
        width: 150px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-button-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    padding: 10px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: width 0.3s ease-in-out, background-color 0.3s ease;
    overflow: hidden;
    width: 60px;
}

.whatsapp-button:hover {
    background-color: #128c7e;
    width: 250px;
}

.whatsapp-button svg {
    fill: white;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.whatsapp-text {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 10px;
    opacity: 0; 
    transition: opacity 0.3s ease;
}

.whatsapp-button:hover .whatsapp-text {
    opacity: 1; 
}







/* Animación del menú hamburguesa a aspa */
.hamburger-menu.is-open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.is-open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.is-open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Estilos para la sección "Nosotras" */
.expandable-content {
    display: none;
    transition: all 0.5s ease-in-out; /* Opcional: añade una transición suave */
}

.expandable-content.is-expanded {
    display: block;
}