@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora&display=swap');

/* Estilos generales */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.top-background {
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.header-content {
    flex: 1;
    margin-top: 2rem;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    height: 100vh;
    padding-top: 8rem;
}

.hero-text {
    flex: 1;
    font-size: 2rem;
    line-height: 1.4;
    color: #fff;
}

.hero-logo {
    width: 40%;
    height: auto;
    margin-bottom: 2rem;
}

.hero-main-text {
    font-size: 3rem;
    font-family: 'Lora', serif;
}

.hero-secondary-text {
    font-size: 1.2rem;
    color: #fff;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    row-gap: 1.5rem;
}

.hero-form input {
    padding: 0.75rem;
    border: none;
    border-bottom: 2px solid #333;
    border-radius: 0;
    height: 40px;
    text-transform: uppercase;
    font-size: 18px;
    background-color: transparent;
    color: #000;
}

.consulta-input {
    height: 60px;
}

.hero-form button {
    padding: 0.5rem;
    background-color: #000033;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    margin-top: 2.5rem;
}

.hero-form button:hover {
    background-color: #001a4d;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

nav li {
    margin: 0 1rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 20;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

main {
    padding: 2rem;
}

.fourth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.fourth-section {
    background-color: #fff;
}

.servicios-imagenes {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.servicio-item {
    width: 45%;
    position: relative;
}

.servicio-item-full {
    width: 100%;
}

.servicio-item-full img {
    max-height: 450px;
    object-fit: cover;
    width: 100%;
}

.servicio-item-full .servicio-texto {
    position: absolute;
    top: 50%;
    right: -90px;
    transform: translateY(-50%);
    margin: 0;
}

.servicio-item-full-left .servicio-texto {
    right: auto;
    left: -90px;
}

.servicio-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.servicio-item:nth-child(1) img,
.servicio-item:nth-child(2) img {
    height: 800px;
    object-fit: cover;
}

.servicio-texto {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    margin: -30px 20px 0 20px;
    z-index: 1;
    text-align: left;
}

.servicio-item-reverse .servicio-texto {
    margin: 0 20px -30px 20px;
}

.servicio-texto h3 {
    margin: 0 0 0.5rem;
    color: #000033;
    font-size: 1.3rem;
}

.servicio-texto p {
    margin: 0;
    color: #000033;
    font-size: 1rem;
}

.servicio-texto ul {
    margin: 1rem 0 0;
    padding-left: 1.5rem;
    color: #000033;
    font-size: 0.95rem;
    list-style-type: disc;
}

.servicio-texto li {
    margin-bottom: 0.5rem;
}

/* Sección Equipo */
.equipo-section {
    background-color: #f5f5f5;
    padding: 4rem 2rem;
}

.equipo-section .section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.equipo-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #000033;
}

.team-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member-left {
    flex-direction: row;
}

.team-member-right {
    flex-direction: row-reverse;
}

.team-member-left .team-image {
    position: relative;
}

.team-image {
    flex-shrink: 0;
    width: 350px;
    height: 350px;
    border-radius: 8px;
    position: relative;
    z-index: 0;
}

.team-image img {
    width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    border-radius: 8px;
}

.team-info {
    flex: 1;
}

.team-member h3 {
    font-size: 1.5rem;
    color: #000033;
    margin: 0 0 0.5rem;
}

.team-member-left h3,
.team-member-left .team-role {
    text-align: left;
}

.team-member-right h3,
.team-member-right .team-role {
    text-align: right;
}

.team-role {
    font-size: 1.1rem;
    color: #000033;
    font-weight: bold;
    margin: 0.5rem 0 1rem;
}

.team-description {
    font-size: 1rem;
    color: #000033;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

.novedades-section {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.novedades-section .section-content {
    max-width: 500px;
}

.newsletter-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.newsletter-text {
    font-size: 1.5rem;
    margin: 0;
    white-space: nowrap;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #000033;
    border-radius: 4px;
    font-size: 1rem;
    text-transform: uppercase;
}

.newsletter-form button {
    padding: 0.75rem 2rem;
    background-color: #000033;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background-color: #001a4d;
}

.section-content {
    max-width: 1200px;
    text-align: center;
}

.section-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: normal;
}

.section-content p {
    font-size: 1.2rem;
    line-height: 1.8;
}


.white-section {
    background-color: #fff;
    padding: 4rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.white-section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.white-section-flex {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.white-section-text-container {
    flex: 1;
}

.white-section-image {
    flex: 1;
}

.white-section-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.white-section-text {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    line-height: 1.8;
}

.contactanos-btn {
    background-color: #000033;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 2rem;
}

.contactanos-btn:hover {
    background-color: #001a4d;
}

section {
    margin-bottom: 0;
}

body section:not(.hero):nth-of-type(odd) {
    background-color: #ffffff;
}

body section:not(.hero):nth-of-type(even) {
    background-color: #f5f5f5;
}


footer {
    background-color: #000033;
    color: #fff;
    padding: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-image {
    flex: 1;
}

.footer-image img {
    height: 150px;
    width: auto;
}

.footer-info {
    flex: 1;
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap;
    text-align: left;
}

.footer-info-column {
    min-width: 200px;
}

.flag {
    display: inline-block;
    width: 1.2em;
    height: 0.8em;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
    background-size: 100% 100%;
    flex: 0 0 auto;
}

.flag-es {
    background: linear-gradient(
        #aa151b 0 33%,
        #f1bf00 33% 66%,
        #aa151b 66% 100%
    );
}

.flag-py {
    background: linear-gradient(
        #d52b1e 0 33%,
        #ffffff 33% 66%,
        #0038a8 66% 100%
    );
}

.footer-info p {
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-info a {
    color: #fff;
    text-decoration: none;
}

.footer-info a:hover {
    color: #fff;
}

.footer-socials {
    flex: 1;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.footer-socials a {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: #000033;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #000033;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #001a4d;
}

.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 5rem;
    background-color: #25D366;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s;
    z-index: 1000;
}

.whatsapp-btn:hover {
    background-color: #20ba5a;
}

/* Media queries para responsive */
@media (max-width: 1024px) {
    .section-content {
        max-width: 90%;
    }
    
    .white-section-flex {
        flex-direction: column;
    }
    
    nav li {
        margin: 0 0.5rem;
    }
}

@media (max-width: 768px) {
    .top-background {
        padding-top: 200px;
    }
    
    .hamburger {
        display: flex;
    }
    
    header {
        flex-direction: row;
        justify-content: flex-end;
        gap: 0;
        padding: 1rem 0.5rem;
    }
    
    .header-content {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 51, 0.95);
        flex-direction: column;
        align-items: center;
        display: none;
        z-index: 15;
        padding: 1rem 0;
    }
    
    .header-content.active {
        display: flex;
    }
    
    .header-content nav ul {
        flex-direction: column;
        justify-content: center;
        gap: 0;
        width: 100%;
    }
    
    .header-content nav li {
        margin: 0;
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .header-content nav a {
        font-size: 1rem;
    }
    
    header {
        gap: 1rem;
        padding: 1rem 0.5rem;
        justify-content: flex-end;
    }
    
    .logo {
        height: 100px;
    }
    
    nav ul {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
    }
    
    nav li {
        margin: 0;
    }
    
    nav a {
        font-size: 1rem;
    }
    
    .hero {
        flex-direction: column;
        padding: 1rem;
        height: auto;
        min-height: 100vh;
        justify-content: center;
    }
    
    .hero-text {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        text-align: left;
    }

    .hero-logo {
        display: block;
        margin: 0 auto 2rem;
    }
    
    .hero-main-text {
        font-size: 1.8rem;
    }
    
    .hero-secondary-text {
        font-size: 1rem;
    }
    
    .hero-form {
        max-width: 100%;
        padding: 0.5rem;
        row-gap: 0.2rem !important;
    }
    
    .white-section {
        padding: 2rem 1rem;
        min-height: auto;
    }
    
    .white-section-flex {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .white-section-text-container {
        order: 2;
        text-align: left;
    }

    .contactanos-btn {
        display: block;
        margin: 2rem auto 0;
    }
    
    .white-section-image {
        order: 1;
    }
    
    .white-section-text {
        font-size: 1rem;
    }
    
    .third-section,
    .fourth-section {
        padding: 2rem 1rem;
        min-height: auto;
    }
    
    .section-content h2 {
        font-size: 1.8rem;
    }
    
    
    .servicios-imagenes {
        flex-direction: column;
        gap: 3rem;
    }
    
    .servicio-item {
        width: 100%;
    }
    
    .servicio-item-full {
        width: 100%;
    }
    
    .servicio-item-full .servicio-texto {
        position: relative;
        right: auto;
        transform: none;
        margin: -30px 20px 0 20px;
        width: auto;
    }

    .servicio-item-full-left .servicio-texto {
        left: auto;
        margin-left: auto;
        margin-right: auto;
    }

    
    .newsletter-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-text {
        font-size: 1.2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form input {
        width: 100%;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .team-container {
        gap: 2rem;
    }
    
    .team-member,
    .team-member-left,
    .team-member-right {
        flex-direction: column !important;
        text-align: center;
        padding: 1.5rem;
    }

    .team-member-left .team-info,
    .team-member-left .team-description,
    .team-member-left h3,
    .team-member-left .team-role {
        text-align: left;
    }

    .team-member-right .team-info,
    .team-member-right .team-description,
    .team-member-right h3,
    .team-member-right .team-role {
        text-align: right;
    }
    
    .team-image {
        width: 150px;
        height: 150px;
    }
    
    .novedades-section {
        padding: 2rem 1rem;
    }
    
    .novedades-section .section-content {
        max-width: 100%;
    }
    
    footer {
        padding: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-image img {
        height: 100px;
    }
    
    .footer-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-info p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .whatsapp-btn {
        bottom: 4rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.5rem;
    }
    
    .logo {
        height: 80px;
    }
    
    nav a {
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 1rem 0.5rem;
    }
    
    .hero-text {
        margin-bottom: 1rem;
    }
    
    .hero-main-text {
        font-size: 1.5rem;
    }
    
    .hero-secondary-text {
        font-size: 0.9rem;
    }
    
    .hero-form {
        padding: 0.5rem;
        row-gap: 0.2rem;
    }
    
    .hero-form input {
        font-size: 14px;
        height: 35px;
    }
    
    .consulta-input {
        height: 45px;
    }
    
    .hero-form button {
        font-size: 16px;
        margin-top: 0.8rem;
    }
    
    .white-section {
        padding: 1rem 0.5rem;
    }
    
    .white-section-text {
        font-size: 0.95rem;
    }
    
    .contactanos-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .section-content p {
        font-size: 1rem;
    }
    
    .newsletter-text {
        font-size: 1rem;
    }
    
    .newsletter-form input {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .newsletter-form button {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }
    
    .footer-image img {
        height: 80px;
    }
    
    .footer-info p {
        font-size: 0.8rem;
    }
    
    .footer-socials a {
        font-size: 1.2rem;
    }
}

