* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; }

body { 
    background-image: url("Dinasala2.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    background-attachment: fixed;
    background-color: hsla(0, 0, 255, 0.1);
    backdrop-filter: blur(5px);
    min-height: 100dvh;
    color: white;
    opacity: 0;
    transition: opacity 0.5s;
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}

body.loaded {
    opacity: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(26, 80, 207, 0.73);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: white;
    position: relative;
    z-index: 1000;
}

@media (max-width: 768px) {
    header {
        padding: 10px 50px; 
    }
}

header nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffcc00;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

header nav a:hover::after {
    width: 100%;
}

header nav a:hover {
    color: #ffcc00;
    transform: translateY(-2px);
}

#Texto_Color_Main {
    color: #ffffff;
    font-size: 4.67mm;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-weight: 500;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    gap: 40px;
    position: relative;
    min-height: 500px;
}

.hero-text, .hero-img {
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 600px;
    animation: slideInFromLeft 1s ease-out;
}

.hero-text h1 {
    font-size: 3.2em;
    margin-bottom: 25px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    color: #f9e42e;
}

.hero-text p {
    font-size: 22px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin-bottom: 35px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
    opacity: 0.95;
}

.hero-text button, .hero-text a button {
    background: linear-gradient(135deg, #ffcc00 0%, #f9e42e 100%);
    border: none;
    padding: 20px 45px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50px;
    color: #1a4fcf;
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px 10px 10px 0;
    display: inline-block;
    text-decoration: none;
}

.hero-text button:hover, .hero-text a button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 204, 0, 0.4);
    background: linear-gradient(135deg, #f9e42e 0%, #ffcc00 100%);
}

.hero-text div[style*="margin-top: 20px"] {
    margin-top: 30px !important;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-text div[style*="margin-top: 20px"]:hover {
    transform: scale(1.02);
}

.hero-text iframe {
    width: 100% !important;
    max-width: 450px !important;
    height: 250px !important;
    border-radius: 25px !important;
    filter: contrast(1.1) brightness(0.95);
    transition: filter 0.3s ease;
}

.hero-text iframe:hover {
    filter: contrast(1.2) brightness(1.05);
}

.hero-img {
    animation: slideInFromRight 1s ease-out 0.3s both;
}

.hero-img img {
    max-width: 100%;
    height: auto;
    width: 400px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.hero-img img:hover {
    transform: scale(1.05) rotate(1deg);
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-section {
    min-height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(50px);
    visibility: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s;
    display: block;
    color: #333;
}

.form-section.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.form-section h2 {
    color: #1a4fcf;
    margin-bottom: 30px;
    font-size: 2.2em;
    text-align: center;
    font-weight: bold;
}

.form-section input, .form-section textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    border: 2px solid rgba(26, 79, 207, 0.2);
    border-radius: 15px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-section input:focus, .form-section textarea:focus {
    outline: none;
    border-color: #1a4fcf;
    box-shadow: 0 0 15px rgba(26, 79, 207, 0.2);
    background: white;
}

.form-section textarea {
    min-height: 120px;
    resize: vertical;
}

.form-section button {
    background: linear-gradient(135deg, #1a4fcf 0%, #3258b0 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(26, 79, 207, 0.3);
}

.form-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(26, 79, 207, 0.4);
    background: linear-gradient(135deg, #3258b0 0%, #1a4fcf 100%);
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

nav {
    display: flex;
}

.anim-slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-section {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 50px;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.accordion {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    margin-bottom: 0;
    border-radius: 15px;
    overflow: visible;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.accordion:hover {
    transform: translateY(-5px);
}

.accordion-toggle {
    width: 100%;
    background: linear-gradient(135deg, #1a4fcf 0%, #3258b0 100%);
    color: white;
    padding: 20px 16px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    outline: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 5px 15px rgba(26, 79, 207, 0.3);
}

.accordion-toggle:hover {
    background: linear-gradient(135deg, #ffcc00 0%, #4a6bc5 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 79, 207, 0.4);
}

.accordion-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0 30px;
    background: rgba(26, 79, 207, 0.95);
    backdrop-filter: blur(15px);
    color: white;
    font-weight: bold;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    margin-top: 0px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
}

.accordion-content p,
.accordion-content ul {
    margin: 15px 0;
    line-height: 1.6;
    font-size: 16px;
}

.accordion-content.visible {
    padding: 20px 20px 30px auto;
    max-height: 400px;
}

.valores-grid {
    min-width: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 0px 10px;
    gap: 15px;
    max-height: 0;
    overflow-y: hidden;
}

.servicios-terapeutas-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    max-height: auto;
    overflow-y: auto;
    padding: 0px 10px;
}

.valor-card {
    background: linear-gradient(135deg, #ffcc00 0%, #f9e42e 100%);
    color: #1a4fcf;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.valor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background: rgba(50, 88, 176, 0.95);
        backdrop-filter: blur(15px);
        padding: 20px;
        border-radius: 15px;
        max-height: 0;   
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.9s ease, opacity 0.4s ease;
        z-index: 10000; 
        pointer-events: auto;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    nav a {
        margin: 15px 0;
        font-size: 18px;
        color: white;
        text-decoration: none;
        padding: 10px;
        border-radius: 10px;
        transition: background 0.3s ease;
    }

    nav a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    nav.active {
        max-height: 500px;     
        opacity: 1;
    }

    .menu-toggle {
        display: block;
        font-size: 2.5rem;
        cursor: pointer;
        color: white;
    }

    .hero {
        padding: 30px 20px;
        gap: 30px;
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }

    .hero-text {
        max-width: 100%;
        padding: 30px 25px;
    }
    
    .hero-text h1 {
        font-size: 2.5em;
    }
    
    .hero-text p {
        font-size: 18px;
    }
    
    .hero-text button, .hero-text a button {
        padding: 16px 35px;
        font-size: 16px;
        margin: 8px 5px;
    }

    .hero-text iframe {
        max-width: 100% !important;
        height: 200px !important;
    }

    .hero-img {
        padding: 20px;
    }

    .hero-img img {
        width: 250px;
    }

    .form-section {
        margin: 30px 15px;
        padding: 30px 25px;
        max-width: calc(100% - 30px);
    }

    .about-section {
        flex-direction: column;
        padding: 30px 20px;
    }
    
    .accordion {
        max-width: 100%;
        min-width: 100%;
    }
    
    .accordion-content {
        position: static;
        margin-top: 0;
    }
    
    .accordion-content.visible {
        padding: 20px;
        max-height: 300px;
    }
    
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
        min-height: auto;
        max-height: 300;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 20px 15px;
    }
    
    .form-section {
        margin: 20px 10px;
        padding: 25px 20px;
    }

    .form-section h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .accordion-toggle {
        font-size: 16px;
        padding: 16px 12px;
    }

    .hero-text button, .hero-text a button {
        padding: 14px 25px;
        font-size: 14px;
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

@media (max-width: 350px) {
    .hero {
        flex-direction: column;
        padding: 20px; 
        gap: 20px;
        text-align: center;
    }
    
    .form-section {
        margin: 15px 5px;
        padding: 20px 15px;
    }

    .hero-text {
        padding: 25px 20px;
    }

    .hero-img img {
        width: 200px;
    }
}
