* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
}

.container_for{
    width: 100%;
    max-width: 500px;
    animation: fadeIn 0.5s ease-out;
    margin: auto;
    margin-top: 1rem;
    padding: 3rem;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


form {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease;
}

form:hover {
    transform: translateY(-5px);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-header h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-header h2 i {
    color: #0c2ec4de;
}

.form-header p {
    color: #7f8c8d;
    font-size: 14px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

label i {
    color:  #0c2ec4de;
    width: 20px;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color:  #0c2ec4de;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}


.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn-submit {
    background: linear-gradient(to right, #0c2ec4de, #0c2ec4de);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: linear-gradient(to right, #0c2ec4de,  #0c2ec4de);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}


.btn-whatsapp {
    background: linear-gradient(to right, #25D366, #1DA851);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    background: linear-gradient(to right, #1DA851, #1A9349);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:active {
    transform: translateY(0);
}

.phone {
    padding: 80px 20px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    min-height: auto;
}

.phone-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1500px;
    width: 100%;
    background: linear-gradient(to right, #2974EC 45%, #464441 45%);
    border-radius: 30px;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 600px;
}

.phone-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.phone-visual img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2)); 
}

.phone-info {
    flex: 1.2;
    padding: 60px 80px 60px 40px;
    text-align: right;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.phone-info h2 {
    font-size: 45px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    text-transform: uppercase;
}

.phone-info p {
    font-size: 23px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 40px;
    max-width: 600px;
}

@media (max-width: 480px) {
    .container_for {
        max-width: 100%;
        padding: 1rem;
        margin-top: 0;
    }

    form {
        padding: 20px;
    }

    .form-header h2 {
        font-size: 20px;
    }

    .form-header p {
        font-size: 12px;
    }

    input[type="text"],
    input[type="tel"],
    input[type="email"] {
        padding: 12px;
        font-size: 14px;
    }

    .btn-submit, .btn-whatsapp {
        padding: 14px;
        font-size: 14px;
    }

    /* Ajustes para la tarjeta phone en móvil */
    .phone {
        padding: 20px 10px;
    }

    .phone-card {
        flex-direction: column;
        background: linear-gradient(to bottom, #2974EC 35%, #464441 35%);
        min-height: auto;
    }

    .phone-visual {
        padding: 30px 20px 20px 20px;
        width: 100%;
    }

    .phone-visual img {
        max-width: 250px;
        transform: rotate(0deg);
    }

    .phone-info {
        padding: 30px 20px;
        text-align: center;
        align-items: center;
        width: 100%;
    }

    .phone-info h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .phone-info p {
        font-size: 16px;
        margin-bottom: 20px;
    }
}

/* Móviles en horizontal y tablets pequeñas (481px a 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container_for {
        max-width: 100%;
        padding: 1.5rem;
    }

    form {
        padding: 25px;
    }

    .form-header h2 {
        font-size: 22px;
    }

    .phone-card {
        flex-direction: column;
        background: linear-gradient(to bottom, #2974EC 40%, #464441 40%);
        min-height: auto;
    }

    .phone-visual {
        padding: 40px 20px 20px 20px;
        width: 100%;
    }

    .phone-visual img {
        max-width: 300px;
        transform: rotate(0deg);
    }

    .phone-info {
        padding: 40px 30px;
        text-align: center;
        align-items: center;
        width: 100%;
    }

    .phone-info h2 {
        font-size: 32px;
    }

    .phone-info p {
        font-size: 18px;
    }
}

/* Tablets en vertical (769px a 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container_for {
        max-width: 450px;
        padding: 2rem 1rem;
    }

    form {
        padding: 25px;
    }

    .phone-card {
        min-height: 500px;
    }

    .phone-visual {
        padding: 30px;
    }

    .phone-visual img {
        max-width: 350px;
    }

    .phone-info {
        padding: 40px 40px 40px 30px;
    }

    .phone-info h2 {
        font-size: 36px;
    }

    .phone-info p {
        font-size: 20px;
        margin-bottom: 30px;
    }
}