*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    text-align: center;
    font-family: "Playfair Display", serif;
    background-color: black;
}

.header {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.pol {
    position: relative;
    height: 100vh;
    background:
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)),
    url(image/mej.png) center/ cover no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.linea{
    position: absolute;
    width: 2px;
    height: 60%;
    background: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.text{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 50px;
    letter-spacing: 2px;

}

.tiop {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, transparent, #000);
}

.left-img{
    position: absolute;
    left: 8%;
    width: 380px;
    transform: translateY(-100px);
    border-radius: 25px;
    z-index: 10;
    padding-top: 20px;
}

.left-img img{
    width: 100%;
    display: block;
    border-radius: 20px;
}

.til {
    position: relative;
    max-width: 700px;
    animation: subir 1.5s ease forwards;
}

.text-box {
    text-align: left;
    margin-bottom: 15px;
}

.texto {
    text-align: left;
    line-height: 1.6;
}

.cuadro-contenedor {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.pol .titulo{
    max-width: 600px;
    margin: 0 auto;
}

.pol .text-box {
    padding: 20px;
    border-radius: 12px;
    max-width: 500px;
    margin: 20px auto;
}

.pol .text-box p,
.pol p {
    display: block;
    white-space: normal;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 100%;
}

.hul {
    font-size: 40px;
    margin-bottom: 60px;
    color: white;
}

.yup {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    color: azure;
    padding: 20px;
}

.txt {
    margin-bottom: 40px;
}

.kil {
    align-items: center;
    margin-left: 12px;
    margin-right: 12px;
}

hr {
    border: none;
    border-top: 2px solid white;
    width: 80%;
    margin: 20px auto;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px;
}

.card {
    display: flex;
    width: 550px;
    background: #1a1a1a;
    height: 550px;
    padding: 20px;
    padding-top: 15px;
    text-align: center;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 40px;
    
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(150, 150, 255, 0.45);
}

.card h1 {
    font-size: 29px;
    margin-bottom: 10px;
}

.card p {
    text-align: justify;
    border-top: 2px solid black;
    padding-top: 15px;
    margin-bottom: 10px;
    flex-grow: 0.5;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
}


.close {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    color:  white;
    margin-top: 200px;
}

.link { 
    background:  #81219b;;
    padding: 40px;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 80px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid  #ffff;
    animation: fadeIn .7s ease-in-out;
}

.close h1 {
    font-size: 20px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px;
    color: white;
}

.close p {
    font-size: 20px;
    line-height: 1.8;
    text-align: justify;
    color: white;
}

section.close {
    width: 80%;
    margin: 50px auto;
    background: #81219b;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 20 rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

section.close h1 {
    font-size: 40px;
    margin-bottom: 20px;
    color: white;
}

section.close p { 
    font-size: 18px;
    text-align: justify;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px);}
    to { opacity: 1; transform: translateY(0);}
}

.about { 
    max-width: 800px;
    width: 80%;
    margin: 0 auto;
    text-align: center;
    border: 3px solid black;
    border-radius: 40px;
    padding: 40px 20px;
    color: white;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: white;
    text-align: center;
}

.fern {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
}

.services {
    text-align: left;

}

.services-dex{
    color: white;
    text-align: left;
    transform: translateX(-250px);
}

.services h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.services-box {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
    color: white;
    text-align: center;
}

.services-box .box {
    width: 280px;
    padding: 15px;
    background: #222;
    color: white;
    text-align: center;
    border-radius: 30px;
    border: 2px solid white;
    font-size: 18px;
}

.box {
    width: 250px;
    padding: 15px;
    text-align: center;
    border: 4px solid white;
    border-radius: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}

.item {
    background: #444;
    padding: 30px;
    border-radius: 15px;
}

.contacto {
    max-width: 800px;
    margin: 0 auto; 
    display: flex;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
}

.form {
    width: 4px;
    height: 350px;
    border-radius: 10px;
    box-shadow: #1a1a1a;
    transform: translateX(-40px);
    margin-left: -50px;
    margin-bottom: 200px;
}

.formulario {
    background: #1f1f11;
    width: 350px;
    padding: 35px;
    border-radius: 25px;
    color: white;
    border: 5px solid black;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.formulario label {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

.formulario input,
.formulario textarea {
    width: 100%;
    border: 3px solid black;
    border-radius: 10px;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 20px;
}

.formulario textarea {
    height: 140px;
}

.formulario button { 
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    background: #4CAF50;
    border-radius: 10px;
    color: white;
    cursor: pointer;
}

.formulario button:hover {
    background: #45a049;
}

.card, close, .services {
    box-shadow: 0 4xp 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0,3s ease;
    border-radius: 25px;
}

.card:hover, close:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}


@media (min-width: 1200px) {
    .pol { height: 600px; padding: 100px 0;}
    .cuadro { width: 70%; max-width: 1000px; padding: 48px; }
    .cuadro h1 { font-size: 40px; }
    .cuadro p { font-size: 18px; line-height: 1.7;}
    .cards { gap: 40px;}
    .card { width: 320px; height: 300px;}

}

@media (max-width: 1199px) and (min-width: 768px) {
    .pol { height: auto; padding: 80px 20px;}
    .cuadro { width: 80%; max-width: 900px; padding: 40px; }
    .cuadro h1 { font-size: 34px; }
    .cuadro p { font-size: 17px; line-height: 1.6;}
    .cards { gap: 30px; max-width: 1000px; padding: 30px;}
    .card { width: 300px; height: auto;}
}

@media (max-width: 767px) {
    .pol {
        background-position: center top;
        padding: 60px 12px;
        height: auto;
    }

    .cuadro {
        width: 92%;
        max-width: 700px;
        padding: 28px;
        border-radius: 14px;
        margin: 0 auto;
    }
    
    .cuadro h1 { font-size: 26px; margin-bottom: 18px;}
    .cuadro p { font-size: 16px; line-height: 1.6;}


    .cards {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 22px;
        padding: 20px;
        max-width: 420px;
        margin: 20px auto;
    }

    .card {
        width: 90%;
        height: auto;
        padding: 18px;
        border-radius: 14px;
        margin-bottom: 20px;
    }

    .card img { height: 180px;}

    .close { 
        max-width: 95%;
        padding: 10px;
    }

    .cuadro, 
    .card {
        animation: none;
        transition: none;
    }

    body { font-size: 15px;} 
}

@media (max-width: 420px) {
    .cuadro { padding: 20px; border-radius: 12px; }
    .cuadro h1 { font-size: 22px; }
    .cuadro p { font-size: 15px; }
    .card img { height: 140px;}

    h1, h2, h3 {
        font-size: 1.2rem;
    }
    p {
        font-size: 0.9rem;
    }
}


